﻿var pic_width = 797; //图片宽度
var pic_height=362; //图片高度
var stop_time=4000; //图片停留时间(1000为1秒钟)
var switch_type=-1;//图片切换方式
var speed = 3;//图片切换速度，以秒计算
var imag=new Array();//图片
var imglink = new Array();//图片链接
//可编辑内容结束
imag[1] = "Images/index/1.jpg";
imag[2] = "Images/index/2.0driver.jpg";
imag[3] = "Images/index/callaway.jpg";
imag[4] = "Images/index/jpx800.jpg";



imglink[1]="";
imglink[2]="";
imglink[3]="";
imglink[4] = "";

var swf_height=pic_height;
var pics="",  texts="",imglinks="";
for(var i=1; i<imag.length; i++){
	pics=pics+("|"+imag[i]);
	imglinks = imglinks+("|"+imglink[i]);
}

pics=pics.substring(1);
imglinks = imglinks.substring(1);
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=6,0,0,0" width="'+ pic_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="imageShow.swf">');
document.write('<param name="quality" value="high"><param name="wmode" value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&pic_width='+pic_width+'&pic_height='+pic_height+' &imglinks='+imglinks+' &speed='+speed+' &switch_type='+switch_type+'&stop_time='+stop_time+'">');
document.write('<embed src="imageShow.swf" FlashVars="pics='+pics+'&pic_width='+pic_width+'&pic_height='+pic_height+" &imglinks="+imglinks+' &speed='+speed+' &switch_type='+switch_type+'&stop_time='+stop_time+'" width="'+ pic_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"  wmode="transparent"/>');
document.write('</object>');